home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
cenvid
/
reboot_1.bat
< prev
next >
Wrap
DOS Batch File
|
1995-03-28
|
1KB
|
27 lines
@echo off
REM *****************************************************************
REM *** Reboot_1.bat - Reboot computer by jumping calling the ***
REM *** ver.1 boot interrupt 0x19. To provide protection ***
REM *** from accidentaly rebooting, you must enter ***
REM *** PLEASE as the first parameter. ***
REM *****************************************************************
REM **************************************************************
REM *** Check that "PLEASE" is the first parameter. CEnviD ***
REM *** return errorlevel if it is not please. ***
REM **************************************************************
CEnviD return( strcmpi("%1","Please") ? 1 : 0 )
if errorlevel 1 GOTO PLEASE
REM ***************************************************
REM *** Interrupt 0x19 is provided for a warm boot. ***
REM ***************************************************
CEnviD reg.ax = 0; interrupt(0x19,reg);
:PLEASE
ECHO Reboot_1.bat will reboot your computer. To execute Reboot.bat you
ECHO must enter: REBOOT_1 PLEASE